package com.example.skillcinema.adapters

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import com.example.skillcinema.databinding.LoadingFootBinding
import com.example.skillcinema.viewholders.FootLoadStateViewHolder

class FootLoadStateAdapter : LoadStateAdapter<FootLoadStateViewHolder>() {
    override fun onBindViewHolder(
        holder: FootLoadStateViewHolder,
        loadState: LoadState
    ) = Unit

    override fun onCreateViewHolder(
        parent: ViewGroup,
        loadState: LoadState
    ): FootLoadStateViewHolder = FootLoadStateViewHolder(
        LoadingFootBinding.inflate(
            LayoutInflater.from(parent.context),
            parent,
            false
        )
    )
}